package com.ruoyi.art.mapper;

import java.util.List;
import com.ruoyi.art.domain.ArtWork;

/**
 * 笔记Mapper接口
 * 
 * @author ruoyi
 * @date 2022-01-29
 */
public interface ArtWorkMapper 
{
    /**
     * 查询笔记
     * 
     * @param workId 笔记主键
     * @return 笔记
     */
    public ArtWork selectArtWorkByWorkId(Long workId);

    /**
     * 查询笔记列表
     * 
     * @param artWork 笔记
     * @return 笔记集合
     */
    public List<ArtWork> selectArtWorkList(ArtWork artWork);

    /**
     * 新增笔记
     * 
     * @param artWork 笔记
     * @return 结果
     */
    public int insertArtWork(ArtWork artWork);

    /**
     * 修改笔记
     * 
     * @param artWork 笔记
     * @return 结果
     */
    public int updateArtWork(ArtWork artWork);

    /**
     * 删除笔记
     * 
     * @param workId 笔记主键
     * @return 结果
     */
    public int deleteArtWorkByWorkId(Long workId);

    /**
     * 批量删除笔记
     * 
     * @param workIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteArtWorkByWorkIds(Long[] workIds);
}
